package com.uottawa.library.domain;

import java.sql.Timestamp;
import java.util.Date;

public class Loan {

	private int loanId;
	private int userId;
	private int itemId;
	private Date creationDate;
	private Timestamp expiryDate;
	private int extensions;
	private int loanPriodId;
	private double lateFees;
	private boolean returned;

	public Loan(int newItemId, int newUserId, Timestamp newExpiryDate) {
		itemId = newItemId;
		userId = newUserId;
		expiryDate = newExpiryDate;

	}

	public Loan() {

	}

	public int getLoanId() {
		return loanId;
	}

	public void setLoanId(int loanId) {
		this.loanId = loanId;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

	public String getLoanPeriod() {
		// TODO Auto-generated method stub
		return null;
	}

	public int getTotalExtention() {
		// TODO Auto-generated method stub
		return 0;
	}

	/**
	 * @return the userId
	 */
	public int getUserId() {
		return userId;
	}

	/**
	 * @param userId
	 *            the userId to set
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}

	/**
	 * @return the itemId
	 */
	public int getItemId() {
		return itemId;
	}

	/**
	 * @param itemId
	 *            the itemId to set
	 */
	public void setItemId(int itemId) {
		this.itemId = itemId;
	}

	/**
	 * @return the extensions
	 */
	public int getExtensions() {
		return extensions;
	}

	/**
	 * @param extensions
	 *            the extensions to set
	 */
	public void setExtensions(int extensions) {
		this.extensions = extensions;
	}

	/**
	 * @param expiryDate
	 *            the expiryDate to set
	 */
	public void setExpiryDate(Timestamp expiryDate) {
		this.expiryDate = expiryDate;
	}

	/**
	 * @return the expiryDate
	 */
	public Timestamp getExpiryDate() {
		return expiryDate;
	}

	/**
	 * @return the loanPriodId
	 */
	public int getLoanPriodId() {
		return loanPriodId;
	}

	/**
	 * @param loanPriodId
	 *            the loanPriodId to set
	 */
	public void setLoanPriodId(int loanPriodId) {
		this.loanPriodId = loanPriodId;
	}

	public double getLateFees() {
		return lateFees;
	}

	public void setLateFees(double lateFees) {
		this.lateFees = lateFees;
	}

	public boolean isReturned() {
		return returned;
	}

	public void setReturned(boolean returned) {
		this.returned = returned;
	}

}
